<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Login Page</title>
</head>
<body bgcolor="#99CCFF">
	<f:view>

		<h:form>

			<h:panelGrid columns="3">

				<h:outputText value="User name:" />
				<h:inputText id="userName" value="#{dbmsUserBean.userName}"
					required="true" requiredMessage="userName is required" />
				<h:message showSummary="true" showDetail="false" for="userName" />

				<h:outputText value="Password:" />
				<h:inputSecret id="password" value="#{dbmsUserBean.password}"
					required="true" requiredMessage="password is required" />
				<h:message showSummary="true" showDetail="false" for="password" />

				<h:outputText value="Host:" />
				<h:selectOneListbox value="#{dbmsUserBean.dbmsHost}" size="1">
					<f:selectItem itemValue="131.193.209.54" itemLabel="Server 54" />
					<f:selectItem itemValue="131.193.209.57" itemLabel="Server 57" />
					<f:selectItem itemValue="localhost" itemLabel="Localhost" />
				</h:selectOneListbox>
				<h:outputText value=" " />

				<h:outputText value="RDBMS:" />
				<h:selectOneListbox value="#{dbmsUserBean.dbms}" size="1">
					<f:selectItem itemValue="MySQL" />
				</h:selectOneListbox>
				<h:outputText value=" " />

				<h:outputText value="database schema:" />
				<h:inputText id="databaseSchema"
					value="#{dbmsUserBean.databaseSchema}" required="true"
					requiredMessage="schema is required" />
				<h:message showSummary="true" showDetail="false"
					for="databaseSchema" />

				<h:outputText value="" />
				<h:commandButton type="submit" value="Login"
					action="#{actionBeanLoginLogout.processLogin}" />
				<h:outputText value="#{messageBean.errorMessage}" />
			</h:panelGrid>

		</h:form>

	</f:view>
</body>
</html>